#include <cstring>
#include <iostream>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <vector>
#include <string>
#include <cstdlib>
#include <stdint.h>
#include <fstream>
#include <algorithm>

#include "cuda.h"
#include "cublas.h"

using namespace std;

# define CUDA_SC( call) do { \
   cudaError err = call;                                                    \
   if( cudaSuccess != err) {                                                \
       fprintf(stderr, "Cuda error in file '%s' in line %i : %s.\n",        \
               __FILE__, __LINE__, cudaGetErrorString( err) );              \
   exit(EXIT_FAILURE);                                                      \
   } } while (0)

#define CPU_MEM 1
#define DEVICE_MEM 2
#define ROW_WISE 1
#define COL_WISE -1

#define OP_POW2 1
#define OP_MULT 2

#include "settings.h"

